package entity;

import lombok.Data;

import java.io.Serializable;
/**
 * @author: jinchao
 * @date: 18/7/31 14:15
 * @description: 接口返回数据格式
 */
@Data
public class Result implements Serializable{

    private Boolean success;
    private String message;
    private Object data;

    public Result(Boolean code,String message){
        this.success = code;
        this.message = message;
    }

    public Result(Boolean code,String message,Object data){
        this.success = code;
        this.message = message;
        this.data = data;
    }

}
